package com.lijy.interfaces;

import java.util.Arrays;

public class EmployeeSortTest
{
    public static void main(String[] args)
    {
        Employee[] staff = new Employee[3];

        staff[0] = new Employee("Harry Hcker", 1);
        staff[1] = new Employee("Carl Creaker", 3);
        staff[2] = new Employee("Tony M", 2);

        Arrays.sort(staff);

        for (Employee e : staff)
        {
            System.out.println(e);
        }
    }
}
